package com.sxt.sys.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 黄学博
 * @since 2020-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ToString
public class User implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	private String name;

	private String loginname;

	private String address;

	private Integer sex;

	private String remark;

	private String pwd;

	private Integer deptid;

	private Date hiredate;

	private Integer mgr;

	private Integer available;

	private Integer ordernum;

	/**
	 * 用户类型[0超级管理员1，管理员，2普通用户]
	 */
	private Integer type;

	/**
	 * 头像地址
	 */
	private String imgpath;

	private String salt;

	/**
	 * 领导名称(不存在的字段)
	 */
	@TableField(exist = false)
	private String leadername;

	/**
	 * 部门名称(不存在的字段)
	 */
	@TableField(exist = false)
	private String deptname;

}
